package com.yc.service;

import com.yc.bean.ReviewBean;
import com.yc.mapper.ReviewMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zwei
 * @create 2024-10-15 11:19
 */
@Service
public class ReviewBizImpl implements ReviewBiz{
    private ReviewMapper reviewMapper;
    @Autowired
    public void setReviewMapper(ReviewMapper reviewMapper) {
        this.reviewMapper = reviewMapper;
    }
    @Override
    public int addReview(ReviewBean reviewBean) {
        return reviewMapper.insert(reviewBean);
    }
}
